package com.psa.element;

import com.google.gson.Gson;

/**
 * Created by david on 14-3-7.
 */
public class UserElement implements IJson {
    private String Corp="";
    private String Id="";
    private String Name="";
    private String Password="";
    private String Session="";

    public String getUID() {
        return UID;
    }

    public void setUID(String UID) {
        this.UID = UID;
    }

    private String UID="";
    private boolean IsLogined=false;
    private String Telephone="";
    private String ICCID="";
    private String IMEI="";
    private String Model="";
    private String Level = "";
    private String SalesmanID = "";
    private String Version = "";
    private String OrderSequence = "";
    private int WxPay = 0;

    public String getTelephone() {
        return Telephone;
    }

    public void setTelephone(String telephone) {
        Telephone = telephone;
    }

    public String getICCID() {
        return ICCID;
    }

    public void setICCID(String iccid) {
        ICCID = iccid;
    }

    public String getIMEI() {
        return IMEI;
    }

    public void setIMEI(String IMEI) {
        this.IMEI = IMEI;
    }

    public boolean isLogined() {
        return IsLogined;
    }

    public void setLogined(boolean isLogined) {
        IsLogined = isLogined;
    }

    public String getCorp() {
        return Corp;
    }

    public void setCorp(String corp) {
        Corp = corp;
    }

    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getPassword() {
        return Password;
    }

    public void setPassword(String password) {
        Password = password;
    }

    public String getModel() {
        return Model;
    }

    public void setModel(String model) {
        Model = model;
    }

    public String getSession() {
        return Session;
    }

    public void setSession(String session) {
        Session = session;
    }

    public String getLevel() {
        return Level;
    }

    public void setLevel(String level) {
        Level = level;
    }

    public String getSalesmanID() {
        return SalesmanID;
    }

    public void setSalesmanID(String salesmanID) {
        SalesmanID = salesmanID;
    }

    public String getVersion() {
        return Version;
    }

    public void setVersion(String version) {
        Version = version;
    }

    public String getOrderSequence() {
        return OrderSequence;
    }

    public void setOrderSequence(String orderSequence) {
        OrderSequence = orderSequence;
    }

    public int getWxPay() {
        return WxPay;
    }

    public void setWxPay(int wxPay) {
        WxPay = wxPay;
    }

    @Override
    public String toString(){
        return "Corp:"+ getCorp()+";Name:"+getName();
    }

    @Override
    public String toJson() {
        return new Gson().toJson(this);
    }
}
